
<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="title" class="control-label col-xs-12 col-sm-2">{:__('title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="title" class="form-control" name="row[title]" type="text" value="{$row.title}" data-rule="required" >
        </div>
    </div>
    <div class="form-group">
        <label for="details" class="control-label col-xs-12 col-sm-2">{:__('details')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="details" class="form-control" name="row[details]" type="text" value="{$row.details}" data-rule="required" >
        </div>
    </div>
    <div class="form-group">
        <label for="begintime" class="control-label col-xs-12 col-sm-2">{:__('begintime')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control datetimepicker" id="begintime" name="row[begintime]" value="{$row.begintime}" data-date-format="YYYY-MM-DD" data-rule="{:__('createtime')}:required" size="6" />
        </div>
    </div>
    <div class="form-group">
        <label for="endtime" class="control-label col-xs-12 col-sm-2">{:__('endtime')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" class="form-control datetimepicker" id="endtime" name="row[endtime]" value="{$row.endtime}" data-date-format="YYYY-MM-DD" data-rule="{:__('createtime')}:required" size="6" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-img" class="control-label col-xs-12 col-sm-2">{:__('img')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline">
                <input id="c-img" class="form-control" size="50" name="row[img]" type="text" value="{$row.img}" data-rule="required"><br>
                <span><button id="plupload-img" class="btn btn-danger plupload" data-mimetype="jpg" data-input-id="c-img" data-preview-id="p-img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-multiple="false" data-input-id="c-img"><i class="fa fa-list-ul"></i> {:__('Choose')}</button></span>
                <ul class="row list-inline plupload-preview" id="p-img"></ul>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="weight" class="control-label col-xs-12 col-sm-2">{:__('weight')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="weight" class="form-control" name="row[weight]" type="number" value="{$row.weight}" data-rule="required" >
        </div>
    </div>
    <div class="form-group">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control summernote" name="row[content]" cols="50" rows="10">{$row.content}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
